// 导出员工路由规则
import Layout from '@/layout'
export default {
	// 路由规则
	path: '/employees',
	name: 'employees', // 后期做权限使用
	component: Layout,
	children: [
		{
			path: '', // 二级路由啥也不写的时候，表示二级路由的默认路由
			name: 'employees',
			component: () => import('@/views/employees'),
			// 左侧导航的命名读取了此处的路由元信息title
			meta: { title: '员工管理', icon: 'people' }
		},
		{
			path: 'detail/:id', component: () => import('@/views/employees/detail'), hidden: true,
			meta: { title: '员工详情' }
		},
		{
			path: 'print/:id', component: () => import('@/views/employees/components/print'), hidden: true,
			mata: { title: '员工打印' }
		}
	]
}
